<%--
  Created by IntelliJ IDEA.
  User: Alta Y
  Date: 2019/10/4
  Time: 0:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="css/xadmin.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        .procu_show_p{
            height: 38px;
            line-height: 38px;
            font-weight: bold;
        }
        .procu_show_p_long{
            font-weight: bold;
        }
    </style>
</head>


<body>
<div class="x-nav">
                <span class="layui-breadcrumb">
                    <a href="">首页</a>
                    <a href="">采购申请管理</a>
                    <a>
                        <cite>查看采购需求</cite></a>
                </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <!-- <div class="layui-card-header">填写采购需求</div> -->
                <!-- 表单 -->
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <div class="layui-card-body ">
                            <fieldset class="layui-elem-field">
                                <legend>订单信息</legend>
                                <div class="layui-field-box">
                                    <div class="layui-row">

                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">订单id</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${purchase.apply_id}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">创建时间</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p"><fmt:formatDate value="${purchase.write_date}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">申请人</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${purchase.create_user}</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">申请单位</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">中能热电</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">单据编号</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">${purchase.bill_number}</p>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">申请日期</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <!-- 已发布 -->
                                                    <!-- <p class="procu_show_p">2019.05.30</p> -->
                                                    <!-- 未发布 -->
                                                    <p class="procu_show_p">暂未发布申请</p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend>采购信息</legend>
                                <div class="layui-field-box">
                                    <div class="layui-row">
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">报价截止时间</label>
                                                <div class="layui-input-inline " style="width: 200px;">
                                                    <p class="procu_show_p"><fmt:formatDate value="${purchase.jh_time_end}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">交货时间</label>
                                                <div class="layui-input-inline" >
                                                    <p class="procu_show_p"><span><fmt:formatDate value="${purchase.jh_time}" pattern="yyyy-MM-dd"/></span> 至 <span><fmt:formatDate value="${purchase.jh_time2}" pattern="yyyy-MM-dd"/></span></p>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">签发人</label>
                                                <div class="layui-input-inline" style="width:200px;">
                                                    <p class="procu_show_p">${purchase.sign_name}</p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">煤种</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">
                                                        <c:if test="${purchase.coal_type == 5}">其他</c:if>
                                                        <c:if test="${purchase.coal_type == 1}">烟煤</c:if>
                                                        <c:if test="${purchase.coal_type == 2}">无烟煤</c:if>
                                                        <c:if test="${purchase.coal_type == 3}">褐煤</c:if>
                                                        <c:if test="${purchase.coal_type == 4}">贫瘦煤</c:if></p>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">煤样</label>
                                                <div class="layui-input-inline" style="width: 200px;">
                                                    <p class="procu_show_p">
                                                        <c:if test="${purchase.coal_class == 5}">其他</c:if>
                                                        <c:if test="${purchase.coal_class == 1}">原煤</c:if>
                                                        <c:if test="${purchase.coal_class == 2}">混煤</c:if>
                                                        <c:if test="${purchase.coal_class == 3}">中煤</c:if>
                                                        <c:if test="${purchase.coal_class == 4}">煤泥</c:if></p>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">采购数量</label>
                                                <div class="layui-input-inline" style="width: 158px;">
                                                    <p class="procu_show_p">${purchase.qty}<span>(万吨)</span></p>

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">交货地点</label>
                                                <div class="layui-input-inline" style="width:200px;">
                                                    <p class="procu_show_p">${purchase.delivery_mode}</p>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <label class="layui-form-label">结算方式</label>
                                            <div class="layui-input-inline" style="width: 200px;">
                                                <p class="procu_show_p">
                                                    <c:if test="${purchase.coal_class == 5}">其他</c:if>
                                                    <c:if test="${purchase.coal_class == 1}">一票结算</c:if>
                                                    <c:if test="${purchase.coal_class == 2}">二票结算</c:if>
                                                    <c:if test="${purchase.coal_class == 3}">铁路大票</c:if>
                                                    <c:if test="${purchase.coal_class == 4}">煤款税票</c:if>
                                                </p>

                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <label class="layui-form-label">验收方式</label>
                                            <div class="layui-input-inline" style="width: 200px;">
                                                <p class="procu_show_p">
                                                    <c:if test="${purchase.check_mode == 1}">到厂验收</c:if>
                                                    <c:if test="${purchase.check_mode == 2}">到厂第三方验收</c:if>
                                                    <c:if test="${purchase.check_mode == 3}">港口第三方验收</c:if>
                                                </p>

                                            </div>
                                        </div>



                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-md4">
                                            <label class="layui-form-label">运输方式</label>
                                            <div class="layui-input-inline" style="width: 200px;">
                                                <p class="procu_show_p">
                                                    <c:if test="${purchase.transport_mode == 1}">火车</c:if>
                                                    <c:if test="${purchase.transport_mode == 2}">汽车</c:if>
                                                    <c:if test="${purchase.transport_mode == 3}">船运</c:if>
                                                    <c:if test="${purchase.transport_mode == 4}">其他</c:if>
                                                </p>

                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">最高限价</label>
                                                <div class="layui-input-inline" style="width: 128px;">
                                                    <p class="procu_show_p">${purchase.max_limit_price}<span>（元/卡.吨）</span></p>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">最低限价</label>
                                                <div class="layui-input-inline" style="width: 128px;">
                                                    <p class="procu_show_p">${purchase.min_limit_price}<span>（元/卡.吨）</span></p>
                                                </div>
                                            </div>
                                        </div>


                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <div class="layui-inline" >
                                                <label class="layui-form-label">限价说明</label>
                                                <div class="layui-input-inline" style="width: 1006px;">
                                                    <p class="procu_show_p">${purchase.max_remark}</p>

                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <div class="layui-inline" >
                                                <label class="layui-form-label">结算付款方式</label>
                                                <div class="layui-input-inline" style="width: 1006px;">
                                                    <p class="procu_show_p">${purchase.pay_mode}</p>

                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 84px;padding-left: 11px;">保证金要求</label>
                                                <div class="layui-input-inline" style="width: 960px;padding-top: 8px;">
                                                    <p class="procu_show_p_long"><c:if test="${purchase.is_quotebond == 0}">本次采购报价保证金标准：<span>${purchase.quotebond_number}</span>元/吨,</c:if><c:if test="${purchase.is_performbond == 0}">履约保证金标准：<span>${purchase.performbond_number}</span>元/吨；</c:if>参与报价时，供应商须先通过平台开立的保证金虚拟账户缴纳500,000元报价保证金；中标信息公布后，未中标供应商的报价保证金将自动返回供应商保证金虚拟账户；中标供应商与电厂签订采购合同时，供应商按电厂履约保证金要求及签约量缴纳履约保证金；在双方完成合同履约后，电厂将解冻履约保证金，履约保证金将返还供应商保证金虚拟账户。 </p>

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend>煤质要求</legend>
                                <div class="layui-field-box">
                                    <fieldset class="layui-elem-field layui-field-title">
                                        <legend style="font-size: 16px;">收到基基准</legend>
                                    </fieldset>
                                    <div class="layui-row">
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">收到基低位发热量Qnet,ar≥</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_1}<span>(KCal/kg)</span></p>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">收到基全硫St,ar≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_4}<span>(%)</span></p>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label" style="width: 180px;">全水分M≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_2}<span>(%)</span></p>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">

                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">收到基灰分Aar≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_5}<span>(%)</span></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">收到基挥发分Var</label>
                                                <div class="layui-input-inline" style="width: 87px;">
                                                    <p class="procu_show_p"><span>${purchase.type_3}</span> 至 <span>${purchase.type_3_2}</span></p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <fieldset class="layui-elem-field layui-field-title">
                                        <legend style="font-size: 16px;">空气干燥基基准</legend>
                                    </fieldset>
                                    <div class="layui-row">
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">空干基水分Mad≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.kgj_1}<span>(%)</span></p>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">空干基全硫St,ad≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.kgj_2}<span>(%)</span></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">空干基挥发分Vad</label>
                                                <div class="layui-input-inline" style="width: 87px;">
                                                    <p class="procu_show_p"><span>${purchase.kgj_3}</span> 至 <span>${purchase.kgj_4}</span></p>

                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <fieldset class="layui-elem-field layui-field-title">
                                        <legend style="font-size: 16px;">干基基准</legend>
                                    </fieldset>
                                    <div class="layui-row">
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">干基高位发热量Qgr,d≥</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_9}<span>(KCal/kg)</span></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">干基全硫St,d≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_10}<span>(%)</span></p>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="layui-col-md4">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">干燥无灰基挥发分</label>
                                                <div class="layui-input-inline" style="width: 87px;">
                                                    <p class="procu_show_p"><span>${purchase.type_11}</span> 至 <span>${purchase.type_12}</span></p>

                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <fieldset class="layui-elem-field layui-field-title">
                                        <legend style="font-size: 16px;">其它</legend>
                                    </fieldset>
                                    <div class="layui-row">
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">粒度(mm)≤</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_8}<span>(KCal/kg)</span></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">灰熔点ST(℃)≥</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_6}<span>(%)</span></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md3">
                                            <div class="layui-inline">
                                                <label class="layui-form-label"
                                                       style="width: 180px;">哈式可磨系数(HGI)≥：</label>
                                                <div class="layui-input-inline" style="width: 60px;">
                                                    <p class="procu_show_p">${purchase.type_7}<span>(KCal/kg)</span></p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">

                                        <div class="layui-col-md12">
<%--                                            <div class="layui-inline">--%>
                                                <label class="layui-form-label" style="width: 180px;">备注</label>
                                                <div class="layui-input-inline" style="width: 76%;">
                                                    <p class="procu_show_p">${purchase.remark}</p>
                                                </div>
<%--                                            </div>--%>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset class="layui-elem-field">
                                <legend>单据审批记录</legend>
                                <div class="layui-field-box">
                                    <div class="layui-row">
                                        <div class="layui-col-md12">
                                            <!-- 有审批记录 -->
                                            <table class="layui-table">
                                                <colgroup>
                                                    <col width="150">
                                                    <col width="200">
                                                    <col>
                                                </colgroup>
                                                <thead>

                                                <tr>
                                                    <th>序号</th>
                                                    <th>操作人员</th>
                                                    <th>单位</th>
                                                    <th>操作</th>
                                                    <th>审批意见</th>
                                                    <th>操作时间</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <c:if test="${auditList != null}">
                                                    <c:forEach items="${auditList}" var="list">
                                                        <tr>
                                                            <td>${list.audit_id}</td>
                                                            <td>${list.operator}</td>
                                                            <td>中能热电</td>
                                                            <td>
                                                                <c:if test="${list.operate == 1}">审核通过</c:if>
                                                                <c:if test="${list.operate == 2}">已驳回</c:if>
                                                            </td>
                                                            <td>${list.audit_content}</td>
                                                            <td><fmt:formatDate value="${list.audit_date}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                                                        </tr>
                                                    </c:forEach>
                                                </c:if>
                                                </tbody>
                                            </table>
                                            <!-- 待审批，没有记录 -->
                                            <c:if test="${auditList == null}">
                                                <p style="color: #f55c5c;padding-left: 30px;">暂无审批记录</p>
                                            </c:if>
                                            <!-- <p style="color: #f55c5c;padding-left: 30px;">暂无审批记录</p> -->
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>

                    <div class="layui-row">
                        <div class="pro_form_div" style="margin: 0 auto;width: 150px;padding-bottom: 40px;">
                            <a href="/procurementList" class="layui-btn layui-btn-normal">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</div>
</body>

</html>
